package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.FileLibraryModel;
import com.ruoyi.system.domain.dto.KnowledgeBaseDto;

/**
 * @Auther Zhipeng Lyu
 * @Date 2023/12/15
 * @Description 知识库管理服务
 */

public interface KnowledgeBaseService extends IService<FileLibraryModel> {
    /**
     * 与chatchat后端交互，创建知识库并返回结果
     * @param kbName
     * @return Boolean
     */
    Boolean CreateKnowledgeBase(String kbName);

    /**
     * 从已有文件中生成临时知识库
     * @param knowledgeBaseDto
     * @return Boolean
     */
    Boolean CreateTempKnowledgeBase(KnowledgeBaseDto knowledgeBaseDto);

    /**
     * 删除知识库
     * @param kbName
     * @return Boolean
     */
    Boolean DeleteKnowledgeBase(String kbName);
}
